//
//  BDGeneralCell.h
//  BadBoy
//
//  Created by wen on 2017/9/6.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BDGeneralModel.h"

@interface BDGeneralCell : UITableViewCell

@property (nonatomic, copy) void(^subviewBlock)(BDGeneralCell *generalCell);
@property (nonatomic, copy) void(^editTextFieldBlock)(BDGeneralCell *generalCell);
@property (nonatomic, copy) void(^clickButtonBlock)(BDGeneralCell *generalCell);
@property (nonatomic, copy) void(^switchBlock)(BDGeneralCell *generalCell);

@property (nonatomic, strong) UITextField *textField;
@property (nonatomic, strong) UISwitch *aSwitch;
@property (nonatomic, strong) UIImageView *aImageView;
@property (nonatomic, strong) UIButton *aButton;
@property (nonatomic, strong) UILabel *aLabel;
@property (nonatomic, strong) UIView *customView;

@property (nonatomic, strong) BDGeneralModel *generalModel;

- (void)layoutWithModel:(BDGeneralModel *)model;

+ (instancetype)cellForTableView:(UITableView *)tableView model:(BDGeneralModel *)model indexPath:(NSIndexPath *)indexPath identifier:(NSString *)identifier;

@end
